package org.jsoup.examples;

import org.jsoup.Connection;
import org.jsoup.Connection.Response;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;


public class testpages {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			//String strurl="http://nssug.baidu.com/su?wd=%E8%81%94%E6%83%B3&prod=news&t=1406555614420";
			String strurl="http://ip.taobao.com/service/getIpInfo.php?ip=myip";
			Response res=Jsoup.connect(strurl)
					.proxy("127.0.0.1",8087).
					execute();

			System.out.println(res.parse().body().text());
			
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
